<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>元素类型互相转换</title>
    <style>
        /* inline,
        block,
        line-block */
        img{
            display: block;
        }
        div{
            width: 200px;
            height: 200px;
            background: yellow;
            display: inline; /* 转化行元素 */
           
        }
    </style>
</head>
<body>
    <img src="img1/2.png" alt="">
    <!-- <p>11111111111111</p> -->
    <div>111</div>
    
</body>
</html>